<?php

namespace App\Observers;


use App\Model\Good;

class GoodObserver
{
    /**
     * Handle the good "created" event.
     *
     * @param Good $good
     * @return void
     */
    public function created(Good $good)
    {
        //
    }



    /**
     * Handle the good "updated" event.
     *
     * @param  Good $good
     * @return void
     */
    public function updated(Good $good)
    {
        //
    }

    /**
     * Handle the good "deleted" event.
     *
     * @param  Good $good  $good
     * @return void
     */
    public function deleting(Good $good)
    {
        //
        return $good->amazonGood()->delete();
    }

    /**
     * Handle the good "deleted" event.
     *
     * @param  Good $good  $good
     * @return void
     */
    public function deleted(Good $good)
    {
        //

    }

    /**
     * Handle the good "restored" event.
     *
     * @param  Good $good  $good
     * @return void
     */
    public function restored(Good $good)
    {
        //
    }

    /**
     * Handle the good "force deleted" event.
     *
     * @param  Good $good  $good
     * @return void
     */
    public function forceDeleted(Good $good)
    {
        //
    }
}
